﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Model.MetadataTypes;
namespace Model.Entities
{
    /// <summary>
    /// 实体类 网络基础信息表, 此类请勿动，以方便表字段更改时重新生成覆盖
    /// </summary>
    [Serializable]
    [MetadataType(typeof(HRDS_NETBASE_Metadata))]
    public partial class HRDS_NETBASE
    {
        /// <summary>
        /// 创建<see cref="HRDS_NETBASE"/>的实例
        /// </summary>
        public HRDS_NETBASE()
        {
        }
        /// <summary>
        /// 网络编号
        /// </summary>
        public virtual string GRIDDINGNETID { get; set; }

        		
        /// <summary>
        /// 网络父编号
        /// </summary>
        public virtual string GRIDDINGPARENTNETID { get; set; }

    		
        /// <summary>
        /// 网络带宽
        /// </summary>
        public virtual decimal BANDWIDTH { get; set; }

    		
        /// <summary>
        /// 网络类型 1、内网 2、VPN
        /// </summary>
        public virtual decimal? NETKIND { get; set; }

    		
        /// <summary>
        /// 网络服务提供商
        /// </summary>
        public virtual decimal? ISP { get; set; }

    		
        /// <summary>
        /// 备注
        /// </summary>
        public virtual string REMARK { get; set; }

    		
        public override bool Equals(object obj)
        {
            HRDS_NETBASE model = obj as HRDS_NETBASE;
            return model != null && (ReferenceEquals(GRIDDINGNETID,null) ? ReferenceEquals(model.GRIDDINGNETID, null) : GRIDDINGNETID.Equals(model.GRIDDINGNETID));
        }
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();
            hash = (hash * 397) ^ (ReferenceEquals(GRIDDINGNETID, null) ? 0 : GRIDDINGNETID.GetHashCode());
            return hash;
        }
    }
}
